package cn.lingyangwl.agile.misc.order.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 订单
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "订单")
public class OrderResp extends OrderBase {
	@ApiModelProperty(value = "取餐号")
	private String callNo;

	@ApiModelProperty(value = "商户订单号(支付中心)")
	private String mchTradeNo;
	
	@ApiModelProperty(value = "订单状态")
	private String orderStatus;
	
	@ApiModelProperty(value = "支付状态")
	private String payStatus;
	
	@ApiModelProperty(value = "支付时间")
	private LocalDateTime payTime;
	
	@ApiModelProperty(value = "订单配送时间")
	private LocalDateTime deliveryTime;
	
	@ApiModelProperty(value = "订单签收时间")
	private LocalDateTime signTime;
	
	@ApiModelProperty(value = "订单完成时间")
	private LocalDateTime finishTime;
	
	@ApiModelProperty(value = "订单关闭时间")
	private LocalDateTime closeTime;
	
	@ApiModelProperty(value = "是否允许订单评价")
	private Boolean isEvaluate;
	
	@ApiModelProperty(value = "是否允许退款")
	private Boolean isEnableRefund;
	
	@ApiModelProperty(value = "商品数量")
	private Integer goodsNum;
	
	@ApiModelProperty(value = "配送状态, 1=未发货, 2=已发货 3=未收货 4=已收货")
	private String deliveryStatus;
	
	@ApiModelProperty(value = "预计发货时间")
	private LocalDateTime predictDeliveryTime;
}
